import { defineStore } from "pinia";
export const authStore = defineStore("auth", {
  state: () => ({
    menus: [] as string[],
    perms: [] as string[],
    userinfo: {}
  }),
  actions: {
    setMenus(menus: string[]) {
      this.menus = menus
    },
    setPerms(perms: string[]) {
      this.perms = perms
    },
    setUserinfo(obj: {}) {
      this.userinfo = obj;
    }
  }
})